Remove _gtk_box_get_children
authorTimm Bäder <mail@baedert.org>
Mon, 1 Feb 2016 14:25:10 +0000 (15:25 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 4 Feb 2016 12:32:34 +0000 (13:32 +0100)
It's doing exactly the same thing as gtk_container_get_children.

gtk/gtkbbox.c
gtk/gtkbox.c
gtk/gtkboxprivate.h

index ab672377d71bbf73a42e10c91de00fe9d90c5191..a492a19a189c06ce3472000353952dda9296095a 100644 (file)
@@ -631,7 +631,7 @@ gtk_button_box_child_requisition (GtkWidget  *widget,
 
   nchildren = 0;
   nsecondaries = 0;
-  list = children = _gtk_box_get_children (GTK_BOX (bbox));
+  list = children = gtk_container_get_children (GTK_CONTAINER (widget));
   needed_width = child_min_width;
   needed_height = child_min_height;
   needed_above = 0;
@@ -1123,7 +1123,7 @@ gtk_button_box_allocate (GtkCssGadget        *gadget,
     sizes = heights;
 
   i = 0;
-  list = children = _gtk_box_get_children (GTK_BOX (widget));
+  list = children = gtk_container_get_children (GTK_CONTAINER (widget));
   while (children)
     {
       GtkWidget *child;
index d0e9d3dc0fef6256ffbb2cf27698d5bee35c513e..d1a6edea6c2b4903a5c9c8c6a1e614efc2bdbfcb 100644 (file)
@@ -2674,30 +2674,6 @@ gtk_box_forall (GtkContainer *container,
     }
 }
 
-GList *
-_gtk_box_get_children (GtkBox *box)
-{
-  GtkBoxPrivate *priv;
-  GtkBoxChild *child;
-  GList *children;
-  GList *retval = NULL;
-
-  g_return_val_if_fail (GTK_IS_BOX (box), NULL);
-
-  priv = box->priv;
-
-  children = priv->children;
-  while (children)
-    {
-      child = children->data;
-      children = children->next;
-
-      retval = g_list_prepend (retval, child->widget);
-    }
-
-  return g_list_reverse (retval);
-}
-
 /**
  * gtk_box_set_center_widget:
  * @box: a #GtkBox
index cd997582da08e044b85b707ffa6eebd566248297..08f8f32a26a426fc318baff22e85249c4defe092 100644 (file)
@@ -29,7 +29,6 @@ void        _gtk_box_set_old_defaults   (GtkBox         *box);
 gboolean    _gtk_box_get_spacing_set    (GtkBox         *box);
 void        _gtk_box_set_spacing_set    (GtkBox         *box,
                                          gboolean        spacing_set);
-GList      *_gtk_box_get_children       (GtkBox         *box);
 
 GtkCssGadget *gtk_box_get_gadget (GtkBox *box);